home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Linux/APUS Install revision 1 (27.02.99) by Duncan Gibb
- ;
- ; This is a very basic installer script intended for Amiga Format
- ;
- ; It assumes the directory structure
- ;
- ; Linux_Launcher - IconX stub for...
- ; Linux.rexx - MUIRexx GUI
- ; Linux.aux - Logic for above
- ; BootStrap - The Linux loader binary
- ; Kernels/#? - Kernel image files - the one named in Linux.aux is assumed to be among them
- ; RAMDisks/#? - RAM disk images - those named in Linux.aux are assumed to be among them
- ; Docs/#? - Documentation tree (mainly from http://SunSite.auc.dk/pub/os/linux/apus/docs/ )
- ;
- ; To install RedHat, you must have the RedHat directory structure:
- ;
- ; /RedHat/base/comps.pmac - Yeah, yeah, it's not a P-Mac, but it's the same (ish)
- ; /RedHat/RPMS/* - RPMs as listed in the above file (or as many as will fit)
- ;
- ; ... on some device Linux can see (FFS partition or CD on supported controller)
-
-
- (set @app-name "Linux/APUS")
- (set AppDir "LinuxAPUS")
- (set @error-msg "An unexpected error has occured. Installation aborted.")
-
-
- (complete 0)
-
- (welcome)
-
- (set InstallDir
- (askdir
- (prompt "Please select where you would like " @app-name " installed.\n"
- "A drawer called '" AppDir "' will be created there.")
- (help "Select where you would like " @app-name " installed. "
- "The installer will then create a drawer called '" AppDir "', "
- "and copy the program and necessary files into it.\n")
- (default @default-dest)
- )
- )
-
- (Set DestDir (tackon InstallDir AppDir))
- (Set KernelsDir (tackon DestDir "Kernels"))
- (Set RAMDisksDir (tackon DestDir "RAMDisks"))
- (Set DocsDir (tackon DestDir "Docs"))
-
- (set @default-dest DestDir)
-
-
-
- ; Give the main directory a custom icon
-
- (copyfiles
- (source "icons/APUS_Drawer.info")
- (dest InstallDir)
- (newname "LinuxAPUS.info")
- (noposition)
- )
-
-
- ; Create directories
-
- (makedir DestDir)
- (makedir KernelsDir (infos))
- (makedir RAMDisksDir (infos))
- (makedir DocsDir (infos))
-
-
-
- (complete 10)
-
-
- ; Copy Launcher and GUI stuff
-
- (copyfiles (source "Linux_Launcher") (dest DestDir) )
- (copyfiles (source "Linux_Launcher.info") (dest DestDir) )
- (copyfiles (source "Linux.rexx") (dest DestDir) )
- (copyfiles (source "Linux.aux") (dest DestDir) )
- (copyfiles (source "BootStrap") (dest DestDir) )
-
- (complete 20)
-
- ; copy the kernel images
-
- (copyfiles (source "Kernels") (dest KernelsDir) (noposition) (all))
-
-
- (complete 50)
-
- ; copy the RAM disk images
-
- (copyfiles (source "RAMDisks") (dest RAMDisksDir) (noposition) (all))
-
- (complete 80)
-
- ; and the documentation
-
- (copyfiles (source "Docs") (dest DocsDir) (noposition) (all))
-
- (complete 99)
-
- (rexx "Linux.rexx default_redhat"
- (prompt (cat "\n\nThe Amiga-side installation is now complete.\nDo you want to run the RedHat installer?"))
- (help (cat "The Linux kernel, its loader and a GUI launcher\n"
- "have been installed on your Amiga.\n\n"
- "You now need to install the system software on the Linux side.\n"
- "You must have some free space (unformatted partitions) on a hard\n"
- "disk which can be used by Linux, and lots of RedHat RPM files.\n"
- "If you choose to launch the RedHat installer, your computer will\n"
- "boot into Linux (AmigaOS is KILLED, so save anything you're working on)\n"
- "and run the RedHat installer.\n\n"
- "You can do this at a later time by running the Linux Launcher\n"
- "and selecting the RedHat option from the Settings menu.\n"))
- (confirm)
- )
-
-
- ; All done.
-
- (complete 100)
-
-